<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
</head>
<body>

	<div class="content-wrapper" th:fragment="docDetail">

	<h3>文档详情</h3>

		<div class="panel panel-default">
			<div class="panel-heading"></div>
			<div class="panel-body">
			<form  class="form-horizontal">
					<fieldset>
						<div class="form-group"  style="margin-top: 10px;margin-bottom: 10px;">
							<label for="input-id-1" required="" minlength="1" class="col-sm-1 control-label">文档标题</label>
							<div class="col-sm-4">
								<p class="form-control-static" id="docTitle"></p>
								
							</div>
							<div class="col-sm-4">
							    <span id="userFavorite"> </span>
							    <span id="userFollower"> </span>
							</div>
							
						</div>
						<div class="form-group"  style="margin-top: 10px;margin-bottom: 10px;">
							<label for="input-id-1" class="col-sm-1 control-label">文档类型</label>
							<div class="col-sm-4">
							   <p class="form-control-static" id="docType"></p>
							</div>
						</div>
						<div class="form-group"  style="margin-top: 10px;margin-bottom: 10px;">
							<label for="input-id-1" class="col-sm-1 control-label">文档版本</label>
							<div class="col-sm-4">
							   <p class="form-control-static" id="docVersion"></p>
							</div>
						</div>
						<div class="form-group"  style="margin-top: 10px;margin-bottom: 10px;">
							<label for="input-id-1" class="col-sm-1 control-label">作者</label>
							<div class="col-sm-4">
								 <p class="form-control-static" id="docAuthor"></p>
							</div>
						</div>

						<div class="form-group"  style="margin-top: 10px;margin-bottom: 10px;">
							<label for="input-id-1" class="col-sm-1 control-label">安全组</label>
							<div class="col-sm-4">
								<p class="form-control-static" id="docGroup"></p>
							</div>
						</div>
					</fieldset>

					<fieldset>
						<div class="form-group">
							<label class="col-sm-1 control-label">文件</label>
							<div class="col-sm-4">
                                 <p class="form-control-static" id="docFile"></p>
                           </div>
						</div>
						<div class="form-group">
							<label class="col-sm-1 control-label">文件夹</label>
							<div class="col-sm-4">
                                 <p class="form-control-static" id="folderPath"></p>
                           </div>
						</div>
					</fieldset>

					<fieldset>

						<div class="form-group">
							<label for="input-id-1" class="col-sm-1 control-label">简介</label>
							<div class="col-sm-4">
								 <p class="form-control-static" id="docSummary"></p>
							</div>
						</div>

					</fieldset>
				
					
					<fieldset>
						
					
						<div  th:each="obj,metaDate:${metaDateList}"  style="margin-top: 10px;margin-bottom: 10px;" class="form-group">
							<label for="input-id-1"  th:text="${metaDateList[__${metaDate.index}__].metadataName}"  class="col-sm-1 control-label"></label>
							 <div  class="col-sm-4">
							 
							  <p class="form-control-static" th:id="${metaDateList[__${metaDate.index}__].metadataTag}" ></p>
							  
							</div>
							
						</div>
					
					</fieldset>
					
					<fieldset>

						<div class="form-group">
							<label for="input-id-1" class="col-sm-1 control-label">提交人</label>
							<div class="col-sm-4">
								 <p class="form-control-static" id="submitter"></p>
							</div>
						</div>
						<div class="form-group">
							<label for="input-id-1" class="col-sm-1 control-label">提交时间</label>
							<div class="col-sm-4">
								 <p class="form-control-static" id="createdDate"></p>
							</div>
						</div>
							<div class="form-group">
							<label for="input-id-1" class="col-sm-1 control-label">最后修改时间</label>
							<div class="col-sm-4">
								 <p class="form-control-static" id="lastUpdDate"></p>
							</div>
						</div>
					</fieldset>
					
					
					
		
					
					<fieldset>
						<legend>历史版本</legend>
						<div class="table-responsive">
                           <table class="table table-hover">
                              <thead>
                                 <tr>
                                    <th>版本</th>
                                    <th>文档</th>
                                    <th>最后更新时间</th>
                                    <th>操作</th>
                                 </tr>
                              </thead>
                              <tbody id="historyData">
                              </tbody>
                           </table>
                        </div>
					</fieldset>

				<fieldset>
						<div class="form-group ">
						<label for="input-id-1" class="col-sm-1 control-label"></label>
							<div class="col-sm-11 ">
								<button type="button" class="btn btn-default pull-right mr-sm"   id="returnBtn">返回</button>
								
							</div>
						</div>
					</fieldset>
				</form>
					<input type="hidden" id="docName" name="docName" th:value="${docName}"/>
					<input type="hidden" id="docId" name="docId" th:value="${docId}"/>
					<input type="hidden" id="returnPage" name="returnPage" th:value="${returnPage}"/>
					

			</div>
		</div>



	
	</div>

	<div th:fragment="docDetail_dialog"></div>
	<div th:fragment="docDetail_js">

		<script th:src="@{/business/doc/docDetail.js}"></script>


	</div>
	<div th:fragment="docDetail_css">

	</div>

</body>
</html>